<extend name="Index:info"/>
<block name="body">
    <div class="panel admin-panel">
        <div class="panel-head"><strong class="icon-reorder"> 内容列表</strong></div>
        <div class="padding border-bottom">
            <button type="button" class="button border-yellow" ><span class="icon-plus-square-o"></span><a href="{:U('add')}">添加金牌老师</a></button>
        </div>
        <table class="table table-hover text-center">
            <tr>
                <th width="10%">ID</th>
                <th width="10%">姓名</th>
                <th width="20%">图片</th>
                <th width="10%">年龄</th>
                <th width="5%">性别 </th>
                <th width="10%">vip</th>
                < th width="20%">代表性项目（url）</th>

                <th width="15%">操作</th>
            </tr>
            <volist name="list" id="vo">
                <tr>
                    <td>{$vo.teacher_id}</td>
                    <td>{$vo.teacher_name}</td>
                    <td><img src="__PUBLIC__{$vo.teacher_img}" alt="" width="150" height="120" /></td>
                    <td>{$vo.teacher_age}</td>
                    <td>{$vo.sex_sex}</td>
                    <td>{$vo.teacher_vip}</td>
                    <td>{$vo.teacher_url}</td>
                    <td><div class="button-group">
                        <a class="button border-main" href="{:U(edit)}?id={$vo.teacher_id}"><span class="icon-edit"></span> 修改</a>
                        <a class="button border-red" href="{:U(del)}?id={$vo.teacher_id}" onclick="return del(1,1)"><span class="icon-trash-o"></span> 删除</a>
                    </div></td>

                </tr>
            </volist>
        </table>

    </div>
    <script type="text/javascript">
        function del(id,mid){
            if(confirm("您确定要删除吗?")){
                var r=confirm("Press a button")
                if (r==false)
                {
                }else{
                }
            }
        }
    </script>

    </div>
</block>